fr = open("bili.txt", "r", encoding="utf-8")
fw = open("bili.txt.bak", "w", encoding="utf-8")

for line in fr:
    if line.count("测试") != 0:
        continue
    line = line.strip()
    fw.write(line)
    fw.write("\n")

fw.close()
fr.close()
